<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>表单</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="/css/global.css" media="all">
		<link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="/plugins/font-awesome/css/font-awesome.min.css">
		<script type="text/javascript" src="/plugins/layui/layui.js"></script>

		<style>
			.layui-form-label {
				width: 10%;
			}
			.layui-input-block {
				margin-left: 13%;
			}

		</style>
	</head>
	<body>
		<div style="margin: 15px;">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
				<legend>添加标签(<label class="layui-required-tip">标红的为必填项</label>)</legend>

			</fieldset>

			<form id="layui-form" class="layui-form" action="/manage/syLabel/saveSyLabel" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label layui-required-tip">标签名称：</label>
					<div class="layui-input-block">
						<input type="text" name="name" lay-verify="required" maxlength="50" placeholder="请填写标签名称" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">状态：</label>
					<div class="layui-input-block">
						<input type="radio" name="status" value="1" title="启用" checked/>
						<input type="radio" name="status" value="0" title="停用" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit="" lay-filter="demo1">添加</button>
						<button type="reset" class="layui-btn layui-btn-primary" onclick="formReset()">重置</button>
						<a href="javascript:" onclick="javascript:history.back();" class="layui-btn">返回</a>
					</div>
				</div>
			</form>
		</div>

		<script>
            layui.use(['form', 'layedit', 'laydate'], function() {
                var $ = layui.jquery;
                var layer = layui.layer; //获取当前窗口的layer对象
                var form = layui.form;
            });
		</script>
	</body>
</html>